package com.dz.core.constant;

import com.dz.core.component.support.IBizCode;

public enum BizCode implements IBizCode {

    SUCCESS(1,"成功"),
    FAIL(0,"失败");

    private int code;
    private String msg;

    BizCode(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    @Override
    public int getCode() {
        return this.code;
    }

    @Override
    public String getMsg() {
        return this.msg;
    }
}
